package com.zb.kc.client;

import com.zb.kc.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Component
@FeignClient(value = "service-vod", fallback = VodFileDegradeFeignClient.class)
public interface VodClient {

    @DeleteMapping("/eduvod/video/{id}")
    R removeAlyVideo(@PathVariable("id") String id);

    /**
     * 阿里云删除多个视频
     *
     * @param videIdList
     * @return
     */
    @DeleteMapping("/eduvod/video/delete-batch")
    public R deleteBathch(@RequestParam("videoIdList") List<String> videIdList);

}
